# -*- coding: utf-8 -*-
"""
@Time ： 2021/6/24 23:58
@Auth ： Mr. royalday 2487625775
@Company ： 2487625775@qq.cpm
@Function ：问题表单
"""
import markdown
from django import forms

from web import models
from web.forms.bootstrap import BootStrapForm


class IssuesModelForm(BootStrapForm, forms.ModelForm):
    class Meta:
        model = models.Issues
        # 过滤字段
        exclude = ['project', 'creator', 'create_datetime', 'latest_update_datetime']

    def __init__(self, request, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.request = request
